/* Par défaut : BD Cartoon Shout */
body {
  font-family: "BD Cartoon Shout", sans-serif;
}

/* Titres */

body, h1, h2, p, a, .gallery, .aunis-title {
  font-family: "BD Cartoon Shout", sans-serif;
}


.h1 {
  width: 500px;
  margin: 0 auto 1em;
  padding: 0.5em;
  text-align: center;
  border-bottom: medium solid #fff;
  font-size: 8px;
  background-color: var(--color-1);
  opacity: 0.93;
}

h2 {
  margin: 0 0 1em;
  padding: 0.5em;
  text-align: center;
  font-size: 10px;
	margin-bottom: 0;
}

h3 {
  font-family: Fredoka One, serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: white;
  font-weight: normal;
}

/* Police perso */
@font-face {
  font-family: "BD Cartoon Shout";
  src: url("BD_Cartoon_Shout.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Variables globales */
:root {
  --color-1: #214e74;
}

/*  Base */
html, body {
  height: 100%;
  font-family: "BD Cartoon Shout", Serif;
  color: #FFF;
  font-weight: 600;
  background-image: url("Fond Craft.png");
  background-repeat: repeat;        /* répète le motif */
  background-size: auto;            /* conserve la taille originale */
  background-position: top left;    /* position de départ */
  background-attachment: fixed;     /* empêche le décalage lors du scroll */
  padding: 2em;
  margin: 0;
}

/*  Images génériques */
.img {
  width: 150px;
  height: 150px;
}

/* Portrait Logo - Responsive */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  padding: 0;
  max-width: 100%;
  width: auto;
}

.logo-container img {
  max-width: 100%;
  height: auto;
}

.portrait-logo {
  max-width: 10px; /* Ajuste selon ta préférence */
  height: auto;
  margin-bottom: 0; /* Évite l’espace sous l’image */
  padding: 0;
  display: block;
}

.portrait-text {
  max-width: 600px;
  margin: 2em auto;
  font-family: Fredoka One, sans-serif;
  font-weight: normal;
  line-height: 1.5;
  color: #fff;
}

.portrait-text .portrait-img {
  float: left;
  width: 180px;      /* taille du portrait */
  height: 180px;
  margin: 0 1em 1em 0;
  border-radius: 50%;  /* cercle */
  shape-outside: circle(); /* texte épouse le cercle */
  -webkit-shape-outside: circle(); /* Safari/Chrome */
  clip-path: circle(); /* masque image en cercle */
  object-fit: cover;   /* image bien centrée */
}

.portrait-img {
  float: left;
  width: 180px;
  height: auto;
  margin: 0 20px 20px 0;
  border-radius: 8px;
}


.icon-menu {
  width: 100%;
  max-width: 600px; /* Largeur max sur les grands écrans */
  background-image: url("../../Divers/Portrait Logo 2.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 2px;

  font-weight: 600;

  margin: 0 auto; /* Centré horizontalement */
  padding: 0;
}

.icon-menu img:hover {
  transform: scale(1.3);
  z-index: 10;
}

@media (max-width: 600px) {
  .portrait-logo {
    max-width: 90%;
    margin-top: 3em;
  }
}


/* Grille responsive */
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  grid-auto-rows: 80px;
  gap: 5px;
  width: 70%;
  max-width: 500px;
  margin: 10px auto 1em;
  background-color: var(--color-1);
  opacity: 0.93;
}

/* Hover */
#grid img:hover {
  transform: scale(1.3);
  transition: transform 0.3s;
  z-index: 1;
}

/* Grid 2 */
#grid2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 icônes par ligne sur PC */
  grid-auto-rows: 100px; /* Réduit la taille des cellules */
  gap: 4px; /* Espacement entre les icônes */
  width: 100%;
  max-width: 650px;
  margin: 10px auto 1em;
  background-color: rgba(33, 78, 127, 0.75);
  border-radius: 10px;
  opacity: 0.93;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 4px;
}


#grid2 > div {
  display: flex;
  align-items: center;   /* centre verticalement */
  justify-content: center; /* centre horizontalement */
}

/* Hover */
#grid img:hover,
#grid2 img:hover {
  transform: scale(1.3);
  transition: transform 0.3s;
  z-index: 1;
}

	



